package model;

/**
 * Moodle Exception. Returns while invalid token.
 * @author UNI\kgp
 */
public class MoodleException extends Exception {

    private String exception;
    private String errorcode;
    private String message;

    public MoodleException() {
    }

    public MoodleException(String exception, String errorcode, String message) {
        this.exception = exception;
        this.errorcode = errorcode;
        this.message = message;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    public String getErrorcode() {
        return errorcode;
    }

    public void setErrorcode(String errorcode) {
        this.errorcode = errorcode;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "MoodleException{" + "errorcode=" + errorcode + ", message=" + message + '}';
    }
}
